Skip to content

Conversation

@djmoch
Copy link

@djmoch djmoch commented Jan 20, 2023

Follow imports is not recommended by the Mypy authors if it can be avoided, but adding it to the invocation forces users down that path. This can lead to unexpected errors trying to use Mypy within pylama.

This commit removes the forced option to skip following imports. Users will see the mypy linter take longer to run in most cases. If that is a problem, they can still configure it not to follow imports in any of the ways the tool supports.

Follow imports is not recommended by the Mypy authors if it can be
avoided[1], but adding it to the invocation forces users down that
path. This can lead to unexpected errors trying to use `mypy` within
pylama.

This commit removes the forced option to skip following imports. Users
will see the `mypy` linter take longer to run in most casees. If that
is a problem, they can still configure it not to follow imports in any
of the ways the tool supports.

[1] - https://mypy.readthedocs.io/en/stable/running_mypy.html#follow-imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant